# coding: utf-8

from app.json.mysql.base import Base as BaseJson
from app.model.mysql.user_gift import UserGift as UserGiftModel
from common.libs.user.UserLibs import UserLibs


class UserGift(BaseJson):
    def __init__(self, model: UserGiftModel):
        self.id = model.id
        self.u_id = model.u_id
        self.g_id = model.g_id
        self.num = model.num
        self.created_time = str(model.created_time)
        self.updated_time = str(model.updated_time)
        self.is_delete = model.is_delete
        self.all_num = model.all_num
